package cn.fl.mcr.service;

import cn.cmm.base.framework.exception.BaseException;
import cn.fl.mcr.export.McrBillCheckDetailExportBean;
import cn.fl.mcr.export.McrBillCheckExportBean;
import cn.lionbridgecapital.loan.model.base.Pager;
import cn.lionbridgecapital.loan.model.vo.McrBillCheckVO;

import java.util.List;

/**
 * @Description: 放款文件对账
 *
 * @Author: shaozhou.li
 * @Date: 2020/4/17 20:49
 */
public interface IMcrBillCheckService {

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    Pager searchListPage(Pager page)throws BaseException;

    /**
     * 导出差异明细
     * @param checkId
     * @return
     * @throws BaseException
     */
    List<McrBillCheckExportBean> exportDiffDetail(Long checkId) throws BaseException;

    /**
     * 文件数据
     * @param id
     * @return
     */
    McrBillCheckVO searchMcrBillCheck(Long id);

    /**
     * 读取资方文件数据
     * @param checkId
     * @return
     * @throws BaseException
     */
    List<String> readLoanFile(Long checkId) throws BaseException;
    /**
     * 获取对账详情数据
     * @param checkId
     * @return
     * @throws BaseException
     */
    List<McrBillCheckDetailExportBean> searchMcrBillCheckDetail(Long checkId) throws BaseException;

    /**
     * 更行记录
     * @param entity
     * @return
     * @throws BaseException
     */
    boolean modify(McrBillCheckVO entity) throws BaseException;

}
